package com.coolt.client.ui;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.coolt.client.logic.ListarCatalogo;
import com.coolt.client.ui.AppConstants;
import com.google.gwt.core.client.GWT;
public class Catalogo extends Composite {

	private static VerticalPanel verticalPanel;
	private static final AppConstants CONSTANTS = (AppConstants) GWT.create(AppConstants.class);
	public Catalogo() {

		verticalPanel = new VerticalPanel();
		initWidget(verticalPanel);
		verticalPanel.setWidth("422");

		final HorizontalPanel horizontalPanel = new HorizontalPanel();
		verticalPanel.add(horizontalPanel);
		horizontalPanel.setSize("422", "25");
		verticalPanel.setCellVerticalAlignment(horizontalPanel, HasVerticalAlignment.ALIGN_TOP);
		horizontalPanel.setStyleName(CONSTANTS.horizontalPanel_styleName());

		final Hyperlink catalogoHyperlink = new Hyperlink(CONSTANTS.catalogoHyperlink_text(), "some history token");
		catalogoHyperlink.setStyleName("linkssecoes");
		horizontalPanel.add(catalogoHyperlink);
		horizontalPanel.setCellVerticalAlignment(catalogoHyperlink, HasVerticalAlignment.ALIGN_MIDDLE);
		horizontalPanel.setCellHorizontalAlignment(catalogoHyperlink, HasHorizontalAlignment.ALIGN_LEFT);

		final Hyperlink verTodosHyperlink = new Hyperlink(CONSTANTS.verTodosHyperlink_text(), "some history token");
		verTodosHyperlink.setStyleName("linkssecoes");
		horizontalPanel.add(verTodosHyperlink);
		horizontalPanel.setCellVerticalAlignment(verTodosHyperlink, HasVerticalAlignment.ALIGN_MIDDLE);
		horizontalPanel.setCellHorizontalAlignment(verTodosHyperlink, HasHorizontalAlignment.ALIGN_RIGHT);
		ListarCatalogo	 catalogoList=new ListarCatalogo();
		verticalPanel.add(catalogoList.getCatalogo());
		
	}
	public static VerticalPanel getVerticalPanel() {
		return verticalPanel;
	}


}
